<template>
  <div class="game">
    <h2>热门游戏列表</h2>
    <slot :youxi="games"></slot>
  </div>
</template>

<script setup lang='ts' name="Game">
import { ref,reactive } from 'vue'
let games=reactive([
    {id:"hkhkjhkjh01",name:"英雄联盟"},
    {id:"hkhkjhkjh02",name:"和平精英"},
    {id:"hkhkjhkjh03",name:"蛋仔派对"}  ])

</script>

<style scoped>
 .game {
    width: 200px;
    height: 300px;
    background-color: skyblue;
    border-radius: 10px;
    box-shadow: 0 0 10px;
  }
  h2 {
    background-color: orange;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
  }
</style>